package com.yxw.live_vod_backend_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/** 
 * @author liuxin
 * @create 2023-12-06 16:25:23 
 * @description 后台设置系统消息通知模板 
 */
@Data
@TableName(value ="yx_notice_type")
@ApiModel(value = "后台设置系统消息通知类型" , description="yx_notice_type")
public class YxNoticeTypeEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "type_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long typeId;

    @TableField(value="notice_type_code")
    @ApiModelProperty(value="通知类型编码")
    private String noticeTypeCode;

    @TableField(value="notice_type_name")
    @ApiModelProperty(value="通知类型名称")
    private String noticeTypeName;

    @TableField(value="use_type_code")
    @ApiModelProperty(value="触发条件编码")
    private String useTypeCode;

    @TableField(value="use_type_name")
    @ApiModelProperty(value="触发条件名称")
    private String useTypeName;

    @TableField(value="content")
    @ApiModelProperty(value="通知内容")
    private String content;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="status")
    @ApiModelProperty(value="状态 0-禁用 1-启用")
    private Integer status;

    @TableField(value="update_id")
    @ApiModelProperty(value="更新人ID")
    private Long updateId;

    @TableField(value="update_name")
    @ApiModelProperty(value="更新人名称")
    private String updateName;

    @TableField(value="update_time")
    @ApiModelProperty(value="更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(value="detail_type")
    @ApiModelProperty(value="是否有明细跳转 0：否 1：是")
    private Integer detailType;

    @TableField(value="belong_type")
    @ApiModelProperty(value="消息类型归属：1-新朋友 2-互动消息3：系统消息")
    private Integer belongType;
}
